package com.yehun.entity;

import com.yehun.enums.ResultEnum;
import lombok.Data;

@Data
public class ResultEntity {

    private int code;
    private String message;
    private Object data;

    public void setResult(ResultEnum resultEnum) {
        this.code = resultEnum.getValue();
        this.message = resultEnum.getText();
    }
}
